package org.huangrui.design.pattern.proxy.staticproxy;

import java.util.Random;


public class Session {//模拟当前系统登录的人员列表
    private static String[] roles = {"admin","user"};
    public static String getUser(){
        return roles[new Random().nextInt(0,2)];
    }
}
